package arraybase;

/**
 * ClassName: 冒泡排序
 * Package: arraybase
 * Description:
 *
 * @Author fjorid
 * @Create 2025/2/17 13:35
 * @Version 1.0
 */
public class 冒泡排序 {
    public static void main(String[] args) {
        int score[] = {67,89,87,69,90,100,75,90};
        for (int i = 1; i < score.length; i++) {
            for (int j = 0; j < score.length; j++) {
                if (score[i] < score[j]){
                    int temp = score[i];
                    score[i] = score[j];
                    score[j]= temp;
                    System.out.println();
                }
            }
        }
    }
}
